package com.homedo.odin.solution.contract.mng.request.column;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@ApiModel(description = "行业规范审核信息")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class SpecialColumnListRequestBean extends BaseRequest {

    @ApiModelProperty("栏目标题")
    private String columnTitle;

    @ApiModelProperty("专家作者名称")
    private String expertName;

    @ApiModelProperty("栏目类型")
    private Integer columnType;

    @ApiModelProperty("创建开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createStartTime;

    @ApiModelProperty("创建结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createEndTime;

    @ApiModelProperty("栏目状态 10：未发布，20：已发布，30：已删除")
    private Integer status;

    @ApiModelProperty(value = "当前页码", required = true)
    @NotNull(message = "当前页码不能为空")
    @Min(message = "当前页码非法", value = 0)
    private Integer pageNum;

    @ApiModelProperty(value = "每页记录数", required = true)
    @NotNull(message = "每页记录数不能为空")
    @Min(message = "每页记录数非法", value = 0)
    private Integer pageSize;
}
